import { Controller, Get, Param } from '@nestjs/common';
import { NetworkService } from './network.service';

@Controller('devices')
export class DevicesController {
  constructor(private readonly networkService: NetworkService) {}

  @Get()
  findAll() {
    return this.networkService.getDevices();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.networkService.getDevice(id);
  }

}
